<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<c-rt:set var="workFlowNode" value="${pu:get('com.yaodian100.crm.workflow.entity.WorkFlowNode', param.id)}"/>

<form method="post" id="theForm" name="theForm">

<table class="tb-data" width="100%">
<tr><th width="130px">ID</th><td>${workFlowNode.id}</td></tr>
<tr><th width="130px">短描述</th><td>${workFlowNode.shortDesc }</td></tr>
<%--
<tr><th width="130px">处理者</th><td>${workFlowNode.responser }</td></tr>
--%>
<tr><th width="130px">处理群组</th><td>
<c-rt:if test="${!empty workFlowNode.responseGroup}">
${pu:get('com.yaodian100.crm.workorder.entity.TaskGroup', workFlowNode.responseGroup).name }(
${workFlowNode.responseGroup })
</c-rt:if>
</td></tr>

<tr><th width="130px">允许流程往上一层</th><td>${workFlowNode.allowBackward }</td></tr>

<tr><th width="130px">需审核</th><td>${workFlowNode.needApprove }</td></tr>
<c-rt:if test="${workFlowNode.needApprove=='true'}">
<tr><th width="130px">需被审核群组</th><td>
<c-rt:if test="${!empty workFlowNode.beApprovedGroup}">
${pu:get('com.yaodian100.crm.workorder.entity.TaskGroup', workFlowNode.beApprovedGroup).name }(
${workFlowNode.beApprovedGroup })
</c-rt:if>
<c-rt:if test="${empty workFlowNode.beApprovedGroup}">
全部
</c-rt:if>
</td></tr>
<%--
<tr><th width="130px">审核人</th><td>${workFlowNode.approver }</td></tr>
--%>
<tr><th width="130px">审核群组</th><td>
<c-rt:if test="${!empty workFlowNode.approveGroup}">
${pu:get('com.yaodian100.crm.workorder.entity.TaskGroup', workFlowNode.approveGroup).name }(
${workFlowNode.approveGroup })
</c-rt:if>
</td></tr>
</c-rt:if>
<%--
<tr><th width="130px">CTI call out</th><td>${workFlowNode.callOut }</td></tr>
--%>
<tr>
<th>节点行为</th>
<td>
${pu:listAdd('nodeParas', workFlowNode.id) }
${pu:reqSet('nodeActs', pu:queryByHql('from WorkFlowNodeAct where node.id=?', pu:arrayGet('nodeParas'), null)) }
<c-rt:forEach items="${nodeActs}" var="nodeAct">
	${nodeAct.attr.description }<br/>
</c-rt:forEach>
</td>
</tr>
	<tr>
	<th></th><td><input type="button" id="submit_button" onclick="doAR('<%=application.getContextPath() %>/workFlow/page.do?iamlazy=toUpdate&id=${workFlowNode.id}', 'rightSide')" value="编辑"/>
	<input type="button" id="submit_button" onclick="doAR('<%=application.getContextPath() %>/workFlow/page.do?iamlazy=toUpdate&workFlowName=${workFlowNode.workFlow.name }&parentId=${workFlowNode.id}', 'rightSide')" value="新增子节点"/>
	<input type="button" id="submit_button" onclick="if(confirm('are your sure?'))doAR('<%=application.getContextPath() %>/workFlow/deleteNode.do?id=${workFlowNode.id}&focused=theFlowTree', 'main')" value="删除"/>
	</td>
	</tr>
	
	</table>
</form>

